package com.ruoyi.order.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.order.service.IOrderService;

import javax.annotation.Resource;

/**
 * 参数配置 信息操作处理
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/order")
public class OrderController extends BaseController {
    @Resource
    private IOrderService orderService;

    /**
     * 减库存
     */
    @GetMapping("/reduceStock")
    public Integer reduceStock() {
        return orderService.reduceStock();
    }
}
